package ptaPartTwo;
import java.util.Scanner;
public class FiveSix {

	public enum Grade {
		A, B, C, D, E;
	}

	public Grade getGrade(int score) {
		if (score >= 90 && score <= 100) {
			System.out.println("Excellent");
			return Grade.A;
		} else if (score >= 80 && score < 90) {
			System.out.println("Good");
			return Grade.B;
		} else if (score >= 70 && score < 80) {
			System.out.println("Average");
			return Grade.C;
		} else if (score >= 60 && score < 70) {
			System.out.println("Fair");
			return Grade.D;
		} else {
			System.out.println("Poor");
			return Grade.E;
		}
	}

	public void printGradeInfo(Grade grade) {
		System.out.println("class name=class Grade");
		System.out.println("grade value=" + grade);
	}

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		while (input.hasNextInt()) {
			int score = input.nextInt();
			FiveSix Get = new FiveSix();
			Get.printGradeInfo(Get.getGrade(score));
		}
	}

}

		
	


